package behaviorpattern.mediator;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ChatRoom {
	public static void showMessage(User user, String message) {
		Date date = new Date();
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		System.out.println(format.format(date) + " "+ user.getName() + ": " + message);
	}
}
